﻿using System.Linq;
using Daemon.Common;
using Daemon.Common.Helpers;
using Daemon.Infrustructure.EF;
using Daemon.Repository.EF.Enums;
using Daemon.Repository.Contract;
using Daemon.Model;
using System;
using System.Linq.Expressions;
using System.Collections.Generic;

namespace Daemon.Repository.EF
{
	public class TakeAwayBoardAreaRepository : Repository<TakeAwayBoardArea>, ITakeAwayBoardAreaRepository
	{
		protected override Expression<Func<TakeAwayBoardArea, int>> PrimaryKeyExpression => r => r.Id;

		public TakeAwayBoardAreaRepository(ApiDBContent context) : base(context)
		{
		}

		protected override IEnumerable<TakeAwayBoardArea> IncludeRelationships(IEnumerable<TakeAwayBoardArea> entities, ApiDBContent db)
		{
			return base.IncludeRelationships(entities, db);
		}
	}
}
